/*
 * @Description: 
 * @Author: huhao
 * @Date: 2021-11-11 10:00:20
 * @LastEditors: huhao
 * @LastEditTime: 2021-11-11 15:24:22
 */
import Vue from 'vue'
import App from './App.vue'
import router from './router'
// 引入element-ui
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import './style/index.scss'
import demoBlock from './components/demo-block'
import hljs from 'highlight.js'
import '../packages/theme-chalk/src/index.scss'
// 导入组件库
import components from '../packages'
Vue.use(components)
Vue.config.productionTip = false
// Vue.use(Button)
// Vue.use(Input)
// Vue.use(Radio)
// Vue.use(RadioGroup)
Vue.use(ElementUI)
Vue.component('demo-block', demoBlock)
router.router.afterEach(route => {
  Vue.nextTick(() => {
    const blocks = document.querySelectorAll('pre code')
    Array.prototype.forEach.call(blocks, hljs.highlightBlock)
  })
})
new Vue({
  router: router.router,
  render: h => h(App)
}).$mount('#app')
